<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld"%>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查询</title>
    <base href="<%=ViewUtil.getRequestPath(request)%>">
    <%
        Locale locale =SessionHelper.getLocaleByUser(request);
    %>
    <jsp:include
            page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
    <jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
    <script type="text/javascript">
        var dialogId = "${dialogId}"; //打开页面传递的模块ID
        $(function() {
            document.getElementById('colLable').focus();
        });

        function closeWindow() {
            if (parent != null && parent.$('#' + dialogId) != null) {
                parent.$('#' + dialogId).dialog('close');
            }
        }

        function resetForm() {
            $("#colLable").val("");
            $("#colName").val("");
        }

        function searchForm() {
            var colLable = $("#colLable").val();
            var colName = $("#colName").val();
            parent.searchFieldDataGrid(colLable, colName);
            closeWindow();
        }
    </script>
</head>
<body class="easyui-layout" data-options="region:'center'" fit="true">
<div region="center" border="false" style="height: 0; overflow: hidden; border: false;">
    <table class="form_commonTable">
        <tr>
            <sec:accesscontrollist hasPermission="3"
                                   domainObject="commtempletmanager_comm_templet_search_colLable">
                <%-- 字段中文名 --%>
                <th width="20%" align="right"><span class=""></span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.basicFieldTable.button.search.fieldCHNName","i18n.lantop",locale)%>：</th>
                <td width="30%"><input class="easyui-validatebox" title='<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.basicFieldTable.button.search.fieldCHNName","i18n.lantop",locale)%>' type="text"
                                       name="colLable" id="colLable" style="width: 170px;"
                                       data-options="validType:['length[0,20]']"></input></td>
            </sec:accesscontrollist>
            <sec:accesscontrollist hasPermission="3"
                                   domainObject="commtempletmanager_comm_templet_search_colName">
                <%-- 字段名 --%>
                <th width="20%" align="right"><span class=""></span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.basicFieldTable.button.search.fieldName","i18n.lantop",locale)%>：</th>
                <td><input class="easyui-validatebox" title='<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.basicFieldTable.button.search.fieldName","i18n.lantop",locale)%>' type="text"
                           name="colName" id="colName" style="width: 170px;"
                           data-options="validType:['length[0,20]']"></input></td>
            </sec:accesscontrollist>
        </tr>
    </table>
</div>
<div data-options="region:'south',border:false" style="height: 40px;">
    <div id="toolbar" class="datagrid-toolbar datagrid-toolbar-extend foot-formopera">
        <table class="tableForm" border="0" cellspacing="1" width="100%">
            <tr>
                <td align="right">
                    <sec:accesscontrollist hasPermission="3"
                                           domainObject="commtempletmanager_comm_templet_search_button_saveButton">
                        <%-- 查询 --%>
                        <a id="searchForm" class="easyui-linkbutton primary-btn"
                           onclick="searchForm();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.basicFieldTable.button.search.button.search","i18n.lantop",locale)%></a>
                    </sec:accesscontrollist>
                    <sec:accesscontrollist hasPermission="3"
                                           domainObject="commtempletmanager_comm_templet_search_button_resetButton">
                        <%-- 重置 --%>
                        <a id="resetButton" class="easyui-linkbutton"
                           onclick="resetForm();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.basicFieldTable.button.search.button.reset","i18n.lantop",locale)%></a>
                    </sec:accesscontrollist>
                    <sec:accesscontrollist hasPermission="3"
                                           domainObject="commtempletmanager_comm_templet_search_button_backButton">
                        <%-- 返回 --%>
                        <a id="backButton" class="easyui-linkbutton"
                           onclick="closeWindow();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.basicFieldTable.button.search.button.return","i18n.lantop",locale)%></a>
                    </sec:accesscontrollist>
                </td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>